package com.tanhua.sso.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * Description:
 *
 * @author:rising luo
 * @Date: 2021-08-05
 * @TIME: 19:24
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Slf4j
@Builder
public class Item {

    private Long id;
    private String title;
    private Long price;

    public static void main(String[] args) {
        Item item=new Item();
        item.setId(1L);
        item.setTitle("aaa");
        System.out.println(item);

        log.info("item"+item.toString());

        Item item1 = Item.builder().id(2L).title("bbb").build();
        System.out.println(item1);

    }
}
